import axios from '@/util'; 

import type {
  VoiceDto,
  VoiceDtoA,
  NewVersionFileDownlodEntity,
} from './typings';



/**
 * 获取声音文件 GET /api/SystemConfigController
 */
export async function get_api_systemconfigcontroller (
  options?: Record<string, any>,
): Promise<VoiceDto> {
  return axios({
    method: 'GET',
    url: `/api/SystemConfigController`,
    ...(options || {}),
  })
}

/**
 * 修改声音文件 PUT /api/SystemConfigController
 */
export async function put_api_systemconfigcontroller (
  data: {
    /**  */
    list?: VoiceDtoA__;
  },
  options?: Record<string, any>,
): Promise<VoiceDto> {
  return axios({
    method: 'PUT',
    url: `/api/SystemConfigController`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 获取新版本文件下载地址 GET /api/SystemConfigController/getNewVersionFileDownloadUrl
 */
export async function get_api_systemconfigcontroller_getnewversionfiledownloadurl (
  options?: Record<string, any>,
): Promise<NewVersionFileDownlodEntity> {
  return axios({
    method: 'GET',
    url: `/api/SystemConfigController/getNewVersionFileDownloadUrl`,
    ...(options || {}),
  })
}

/**
 * 创建新版本文件下载地址 POST /api/SystemConfigController/createNewVersionFileDownloadUrl
 */
export async function post_api_systemconfigcontroller_createnewversionfiledownloadurl (
  data: {
    /** Android版本下载链接 */
    android?: string;
    /** iOS版本下载链接 */
    ios?: string;
  },
  options?: Record<string, any>,
): Promise<NewVersionFileDownlodEntity> {
  return axios({
    method: 'POST',
    url: `/api/SystemConfigController/createNewVersionFileDownloadUrl`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}
